package org.zfes.snowier.common.monitor.biz.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import net.bytebuddy.implementation.bind.annotation.IgnoreForBinding;
@TableName("monitor_mysql_qtps")
public class MysqlMonitorEntity implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@TableId(type = IdType.AUTO)
    private Integer id;
	
	@TableField(exist=false)
	private String host;
	@TableField(exist=false)
	private Integer port;
	
	
	@TableField("instanceKey")
	private String instanceKey;
	@TableField("groupKey")
	private String groupKey;
	private Date date;
	@TableField(exist=false)
	private String dateStr;
	@TableField("tps")
	private Integer tps;
	@TableField("qps")
	private Integer qps;
	@TableField("Questions")
	private Integer questions;
	
	@TableField("Com_select")
	private Integer comSelect;
	
	@TableField("Com_insert")
	private Integer comInsert;
	
	@TableField("Com_delete")
	private Integer comDelete;
	
	@TableField("Com_update")
	private Integer comUpdate;
	
	@TableField("Com_begin")
	private Integer comBegin;
	
	@TableField("Com_commit")
	private Integer comCommit;
	
	@TableField("Com_rollback")
	private Integer comRollback;
	
	@TableField("Max_used_connections")
	private Integer maxUsedConnections;
	
	@TableField("Threads_connected")
	private Integer threadsConnected;
	
	@TableField("Connections")
	private Integer connections;
	
	@TableField("Threads_running")
	private Integer threadsRunning;
	
	@TableField("Bytes_received")
	private Integer bytesReceived;
	
	@TableField("Bytes_sent")
	private Integer bytesSent;
	
	@TableField("Open_tables")
	private Integer openTables;
	
	@TableField("Uptime")
	private Integer uptime;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public Integer getPort() {
		return port;
	}

	public void setPort(Integer port) {
		this.port = port;
	}

	public String getInstanceKey() {
		return instanceKey;
	}

	public void setInstanceKey(String instanceKey) {
		this.instanceKey = instanceKey;
	}

	public String getGroupKey() {
		return groupKey;
	}

	public void setGroupKey(String groupKey) {
		this.groupKey = groupKey;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getDateStr() {
		return dateStr;
	}

	public void setDateStr(String dateStr) {
		this.dateStr = dateStr;
	}

	public Integer getTps() {
		return tps;
	}

	public void setTps(Integer tps) {
		this.tps = tps;
	}

	public Integer getQps() {
		return qps;
	}

	public void setQps(Integer qps) {
		this.qps = qps;
	}

	public Integer getQuestions() {
		return questions;
	}

	public void setQuestions(Integer questions) {
		this.questions = questions;
	}

	public Integer getComSelect() {
		return comSelect;
	}

	public void setComSelect(Integer comSelect) {
		this.comSelect = comSelect;
	}

	public Integer getComInsert() {
		return comInsert;
	}

	public void setComInsert(Integer comInsert) {
		this.comInsert = comInsert;
	}

	public Integer getComDelete() {
		return comDelete;
	}

	public void setComDelete(Integer comDelete) {
		this.comDelete = comDelete;
	}

	public Integer getComUpdate() {
		return comUpdate;
	}

	public void setComUpdate(Integer comUpdate) {
		this.comUpdate = comUpdate;
	}

	public Integer getComBegin() {
		return comBegin;
	}

	public void setComBegin(Integer comBegin) {
		this.comBegin = comBegin;
	}

	public Integer getComCommit() {
		return comCommit;
	}

	public void setComCommit(Integer comCommit) {
		this.comCommit = comCommit;
	}

	public Integer getComRollback() {
		return comRollback;
	}

	public void setComRollback(Integer comRollback) {
		this.comRollback = comRollback;
	}

	public Integer getMaxUsedConnections() {
		return maxUsedConnections;
	}

	public void setMaxUsedConnections(Integer maxUsedConnections) {
		this.maxUsedConnections = maxUsedConnections;
	}

	public Integer getThreadsConnected() {
		return threadsConnected;
	}

	public void setThreadsConnected(Integer threadsConnected) {
		this.threadsConnected = threadsConnected;
	}

	public Integer getConnections() {
		return connections;
	}

	public void setConnections(Integer connections) {
		this.connections = connections;
	}

	public Integer getThreadsRunning() {
		return threadsRunning;
	}

	public void setThreadsRunning(Integer threadsRunning) {
		this.threadsRunning = threadsRunning;
	}

	public Integer getBytesReceived() {
		return bytesReceived;
	}

	public void setBytesReceived(Integer bytesReceived) {
		this.bytesReceived = bytesReceived;
	}

	public Integer getBytesSent() {
		return bytesSent;
	}

	public void setBytesSent(Integer bytesSent) {
		this.bytesSent = bytesSent;
	}

	public Integer getOpenTables() {
		return openTables;
	}

	public void setOpenTables(Integer openTables) {
		this.openTables = openTables;
	}

	public Integer getUptime() {
		return uptime;
	}

	public void setUptime(Integer uptime) {
		this.uptime = uptime;
	}

	@Override
	public String toString() {
		return "MysqlMonitorEntity [id=" + id + ", host=" + host + ", port=" + port + ", instanceKey=" + instanceKey
				+ ", groupKey=" + groupKey + ", date=" + date + ", dateStr=" + dateStr + ", tps=" + tps + ", qps=" + qps
				+ ", questions=" + questions + ", comSelect=" + comSelect + ", comInsert=" + comInsert + ", comDelete="
				+ comDelete + ", comUpdate=" + comUpdate + ", comBegin=" + comBegin + ", comCommit=" + comCommit
				+ ", comRollback=" + comRollback + ", maxUsedConnections=" + maxUsedConnections + ", threadsConnected="
				+ threadsConnected + ", connections=" + connections + ", threadsRunning=" + threadsRunning
				+ ", bytesReceived=" + bytesReceived + ", bytesSent=" + bytesSent + ", openTables=" + openTables
				+ ", uptime=" + uptime + "]";
	}
	
	
	
	





}
